package org.langqiao.network.java复习题老师给的;

public class str {

	public static int i=0;
	public static int j=0;
    public static char a[]={'H','a','p','p','y','b','i','r','t','h','d','a','y',',','d','e','a','r','b','a','b','y','!'};//定义一个字符窜
    
	public static void main(String[] args)throws Exception
	{
		

		for(i=0;i<=a.length/2;i++)
	    {
		    char p;
		    p=a[i];
		    a[i]=a[a.length-i-1];
		    a[a.length-i-1]=p;
		    System.out.print(a[i]);
		    System.out.print(a[a.length-i-1]);
		    
	     }
		
	 }

}
